<?php
/* set the cache expire to 60 minutes */
session_cache_expire(60);

/* start the session */
session_start();
// if page is loaded by post method then clear the query results in session cache (form is submitted)
// or when the page is loaded for the first time (the PHP SELF variable is different from the cache page which might have been set in another report page
if($_SESSION["cache"]["page"] !=$_SERVER["PHP_SELF"] || $_POST || !$_GET)
        {
        unset($_SESSION["cache"]);
        }
/*if(!$_SESSION["guser_id"])
	{
	header("Location:../users/login.php");
	}*/
list($usec, $sec) = explode(" ", microtime());
$startTime=((float)$usec + (float)$sec);
?>
